//
//  SWInvitationHandleReq.swift
//  ChildStory
//
//  Created by linhan on 16/9/12.
//  Copyright © 2016年 Aiya. All rights reserved.
//

import Foundation
class SWInvitationHandleReq: SWBaseRequest
{
    var grant:Bool = true
    var invitationID:String = ""
    
    override init()
    {
        super.init()
        api = SWRequestAPI.InvitationHandle
    }
    
    override var params:Any?
    {
        var param:[String:Any] = [:]
        param["invite_id"] = invitationID
        //1 同意, 2 拒绝
        param["result"] = grant ? 1 : 2
        return param
    }
}
